<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Menu extends CI_Controller {	

 function __construct()
 {
  	parent::__construct();
  	$this->load->model('TB_Menu');
 }
	public function index()
	{
		$data["Menus"]=$this->TB_Menu->get_Menus();
		$this->load->view('view_menu',$data);
	}
	public function insert()
	{
		$this->TB_Menu->insert(); 
	}
	public function delete()
	{
			$this->TB_Menu->delete($_GET["ClassID"]); 
	}
	public function get_Menus()
	{
		return	$this->TB_Menu->get_Menus();
	}
}
?>